#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main() {
    int age;
    while (scanf("%d", &age) == 1) {
        printf("%d\n", age * 31560000);
    }
    return 0;
}